import java.util.*;
public class PanDuanshuzi___________ {

        public static void main(String[] args) {
            Scanner input = new Scanner(System.in);

            String s = "12t";

            System.out.println(isNum(s));

        /*
        int n = Integer.parseInt(s);
        n = n + 2;  //n+=2;
        System.out.println(n);
         */

        }

        private static boolean isNum(String s) {
            for (int i=0;i<s.length();i++){
                char c = s.charAt(i);
                if(isNumchar(c)){
                    continue;
                }else{
                    return false;
                }
            }
            return true;      //存在意义???
        }

        private static boolean isNumchar(char c) {
            switch (c){
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':
                    return true;
                default:
                    return false;
            }
        }
    }
